<block name="left">
<div class="left-layer"></div>

<div class="left-box">
	<div class="left-positi">
	<div class="left-img left-border">
		<!--
		<img src="__IMG__/saber.png"/>
		-->
		<img src="{$headimgurl}">
	</div>
	<ul>
		<li class="left-list left-border"><a href="{:U('Index/index')}"><img class="left-icon" src="__IMG__/icon01.png" /><span class="left-span">首页</span></a></li>
		<li class="left-list left-border"><a href="{:U('StockOption/index')}"><img class="left-icon" src="__IMG__/icon23.png" /><span class="left-span">恒指期权</span></a></li>
		<li class="left-list left-border"><a href="{:U('Pay/personal_incharge')}"><img class="left-icon" src="__IMG__/icon02.png" /><span class="left-span">充值</span></a></li>
		<li class="left-list left-border"><a href="{:U('User/bank_index')}"><img class="left-icon" src="__IMG__/icon03.png" /><span class="left-span">提现</span></a></li>
		<li class="left-list left-border"><a href="{:U('Transaction/index')}"><img class="left-icon" src="__IMG__/icon04.png" /><span class="left-span">交易历史</span></a></li>
		<li class="left-list left-border"><a href="{:U('Order/order_list')}"><img class="left-icon" src="__IMG__/icon04.png" /><span class="left-span">订单列表</span></a></li>
		<!-- <li class="left-list left-border"><a href="#"><img class="left-icon" src="__IMG__/icon04.png" /><span class="left-span">排行榜</span></a></li> -->
		<li class="left-list left-border"><a href="{:U('Payments/payments')}"><img class="left-icon" src="__IMG__/icon05.png" /><span class="left-span">收支明细</span></a></li>
		<li class="left-list left-border"><a href="{:U('User/user_info')}"><img class="left-icon" src="__IMG__/icon06.png" /><span class="left-span">个人信息</span></a></li>
		<if condition="$is_agent eq 1"><li class="left-list left-border"><a href="{:U('Commission/index')}"><img class="left-icon" src="__IMG__/icon22.png" /><span class="left-span">经纪中心</span></a></li></if>
		<if condition="$is_agent eq 0"><li class="left-list left-border"><a href="{:U('Apply/index')}"><img class="left-icon" src="__IMG__/icon22.png" /><span class="left-span">经纪中心</span></a></li></if>
       <!--  <li class="left-list left-border"><a href="{:U('Commission/index')}"><img class="left-icon" src="__IMG__/icon22.png" /><span class="left-span">分销中心</span></a></li> -->
	</ul>
	</div>
</div>
<!--没注册提示框-->
<div class="left-tips">
	<p class="left-tipsp1">注册</p>
	<p class="left-tipsp2">您还没有注册,请先注册!</p>
	<div class="left-tipsdiv">
		<a class="left-tipsa1" href="#">取消</a>
		<a class="left-tipsa2" href="#">确定</a>
	</div>
</div>

<!--未登录提示-->
<!-- <div class="container" style="display: {$hasPwd};">
	<div class="dailog_mask" style="display: block;"></div>
	<div class="index-mask" style="display: block;">

		<div class="no_loginbox">
			<p class="nologin_title">交易密码</p>
			<p class="nologin_pwd"></p>
			<input type="password" name="futures_pwd" id="futures_pwd" value="" placeholder="密码" class="pwd_input"/>
		</div>
		<div class="nologin_sub clearfix">
			<a href="{:U('User/find_pwd')}" class="sub_findpwd">找回密码</a>
			<a href="javascript:void(0);" class="sub_login" onclick="pwd_login();">确认</a>		
		</div>
		
</div> -->

<script type="text/javascript">
$("a").attr('data-ajax',false);
$('.flip-go').css('float','left')

$('#show').click(function(){
		$('.left-layer').toggle();
		$('.left-box').toggle();
//		move('left-box');
})
$('.left-layer').click(function(e){	
	e.stopPropagation;
	$('.left-layer').toggle();
	$('.left-box').toggle();
})

/**
 * [input_pwd 交易密码登录]
 * @return {[type]} [description]
 */
function pwd_login(){
	//获取输入的交易
	var pwd = $('#futures_pwd').val();
	if(pwd==''){
		$(".nologin_pwd").html('请输入交易密码！');
		return;
	}
	var url="{:U('User/pwd_login')}";
    $.post(url,{pwd:pwd},function(data){
        if(data.status){
        	$(".nologin_pwd").html('成功！');
           	window.location.href="{:U('Index/index')}";
        }else{       
            $(".nologin_pwd").html(data.info);
        }
    },'json')        
}
</script>
</block>
